-
Notifications
You must be signed in to change notification settings - Fork 60
AXON-1839 Cancel API is failing to respond: #1549
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
marcomura
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't believe this solution will work.
If we immediately abort the session on cancellation, and we don't wait for the cancellation to be confirmed by Rovo Dev, a subsequent prompt will result in 4xx as Rovo Dev thinks a chat is already in progress.
|
marcomura thanks for the catch. i have added code to address the case you mentioned
|
What Is This Change?
In this PR, we address a subtle issue in how session cancellation is handled.
Currently, when a user cancels a session with Rovo Dev IDE:
This approach has a drawback: the user’s cancellation request is not fully honored until Rovo Dev completes its side of the cancellation. In practice, this can leave the user waiting and create the impression that the UI is still “stuck” on the old session.
In this PR, when the user cancels a session:
How Has This Been Tested?
npm run test:unit -- src/rovo-dev/rovoDevChatProvider.test.test.ts
Basic checks:
npm run lintnpm run testAdvanced checks:
Recommendations:
Ask your organization admin to add you to Rovo Dev Standard.
More about code review errors